package com.shop.user;

import java.util.Date;

public class User {

    private Long userid;            // 对应 user_id (bigint)
    private String username;    // 对应 username (varchar(50))
    private String password;    // 对应 password (varchar(255))
    private String email;       // 对应 email (varchar(100))
    private Date createdDt;     // 对应 created_dt (datetime)
    private Date updatedDt;     // 对应 updated_dt (datetime)

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long id) {
        this.userid = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreatedDt() {
        return createdDt;
    }

    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }

    public Date getUpdatedDt() {
        return updatedDt;
    }

    public void setUpdatedDt(Date updatedDt) {
        this.updatedDt = updatedDt;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + userid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", createdDt=" + createdDt +
                ", updatedDt=" + updatedDt +
                '}';
    }
}
